/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package actions;

import beans.DiaplyUsersFormBean;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;
import moderator.ModeratorControlPanel;

/**
 *
 * @author Deena
 */
public class ModUsersControlPanel extends org.apache.struts.action.Action {

    ModeratorControlPanel mod = new ModeratorControlPanel();
    //Vector<JfMembers> members = new Vector<JfMembers>();
    @Override
    public ActionForward execute(ActionMapping mapping, ActionForm form,HttpServletRequest request, HttpServletResponse response)throws Exception {
        ((DiaplyUsersFormBean)form).setUsers(mod.getAllUsers());
        return mapping.findForward("done");
    }
}
